package com.lijie.bs_recruit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.lijie.bs_recruit.model.Applicants;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lijie
 * @since 2021-04-07
 */
public interface ApplicantsService extends IService<Applicants> {
    PageInfo<Applicants> selApplicantByuserId( Integer pageIndex,Integer userId);

    //通过userId和positionId查询applicants
    Applicants seApplicantByIds(Integer userId,Integer positionId);

    //user查看自己不同状态的投递记录
    PageInfo<Applicants> selApplicantByUserIndex( Integer pageIndex,Integer hrId,Integer IsEmployIndex);

    //hr查看不同状态简历
    PageInfo<Applicants> selApplicantByHrIndex( Integer pageIndex,Integer hrId,Integer IsEmployIndex);

    boolean setApplicantIsEmploy(Applicants applicants);
}
